﻿using System;
using LuaInterface;
using SLua;
using System.Collections.Generic;
public class Lua_Hugula_Loader_LRequestPool : LuaObject {
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static public int constructor(IntPtr l) {
		try {
			Hugula.Loader.LRequestPool o;
			o=new Hugula.Loader.LRequestPool();
			pushValue(l,true);
			pushValue(l,o);
			return 2;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static public int Get_s(IntPtr l) {
		try {
			var ret=Hugula.Loader.LRequestPool.Get();
			pushValue(l,true);
			pushValue(l,ret);
			return 2;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static public int Release_s(IntPtr l) {
		try {
			Hugula.Loader.CRequest a1;
			checkType(l,1,out a1);
			Hugula.Loader.LRequestPool.Release(a1);
			pushValue(l,true);
			return 1;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static public int get_countAll(IntPtr l) {
		try {
			pushValue(l,true);
			pushValue(l,Hugula.Loader.LRequestPool.countAll);
			return 2;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static public int get_countActive(IntPtr l) {
		try {
			pushValue(l,true);
			pushValue(l,Hugula.Loader.LRequestPool.countActive);
			return 2;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static public int get_countInactive(IntPtr l) {
		try {
			pushValue(l,true);
			pushValue(l,Hugula.Loader.LRequestPool.countInactive);
			return 2;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
	static public void reg(IntPtr l) {
		getTypeTable(l,"Hugula.Loader.LRequestPool");
		addMember(l,Get_s);
		addMember(l,Release_s);
		addMember(l,"countAll",get_countAll,null,false);
		addMember(l,"countActive",get_countActive,null,false);
		addMember(l,"countInactive",get_countInactive,null,false);
		createTypeMetatable(l,constructor, typeof(Hugula.Loader.LRequestPool));
	}
}
